<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/20 0020
 * Time: 15:13
 */

namespace app\model\model;


class Adminlog extends Base
{
    /**
     * 添加一个管理员日志
     * */
    public function addOne($data){
        return $this->save($data);
    }
    /**
     * 获取日志列表
     * */
    public function getList($where=false,$li){
        return $this->where($where)->order('id desc')->paginate($li);
    }
    public function del($id){
        return $this->where(['id'=>$id])->delete();
    }
    public function delAll($id){
        return $this->where('id','in',$id)->delete();
    }
}